package com.yft.entity.base;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public class TreeEntity extends BaseEntity {
	private static final long serialVersionUID = 2945309380511390917L;

	@Column(length = 40) 
	private String upId;
	
	@Column(nullable = false, length = 80) 
	private String name;
	
	@Column(nullable = false) 
	private Integer level;
	
	@Column(nullable = false, length = 8000)
	private String treePath;
	
	@Column(length=1)
	private Integer isTip;

	public String getUpId() {
		return upId;
	}

	public void setUpId(String upId) {
		this.upId = upId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getTreePath() {
		return treePath;
	}

	public void setTreePath(String treePath) {
		this.treePath = treePath;
	}

	public Integer getIsTip() {
		return isTip;
	}

	public void setIsTip(Integer isTip) {
		this.isTip = isTip;
	}
}
